<!--
 * @Description: 全局加载状态图标
-->
<template>
  <div class="HeaderLoading-content" v-if="reqCount > 0">
    <Circle8></Circle8>
  </div>
</template>

<script setup>
import { useStore } from 'vuex'
import { computed } from 'vue'
import Circle8 from './components/Circle-8/Circle8.vue'

let store = useStore()
let reqCount = computed(() => store.state.reqCount)
</script>

<style lang="less" scoped>
.HeaderLoading-content {
  position: absolute;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
</style>
